<?php


namespace app\api\controller\manystore;


use app\common\model\manystore\ParentStudent;

class Student extends Base
{
    public function list()
    {
        $page = $this->request->get('page');
        $limit = $this->request->get('limit',LIMIT);

        $where['banji_id'] = $this->banji->id;

        $model = new \app\common\model\manystore\Student();
        $list = $model->where($where)->paginate($limit,false,['page' => $page]);

        $result = array("total" => $list->total(), "rows" => $list->items());
        $this->success('返回成功',$result);
    }
}